package com.bzframework.bookkeeping.controller;

import com.bzframework.bookkeeping.service.BookkeepingRoomService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author bingzhong
 * @Date 2025/11/2
 */
@Tag(name = "打牌记账")
@RestController
@RequestMapping("/room")
@RequiredArgsConstructor
public class BookkeepingRoomController {

    private final BookkeepingRoomService bookkeepingRoomService;

    @GetMapping("/create")
    @Operation(summary = "创建房间")
    public Boolean createRoom(@RequestParam String userId){
        return bookkeepingRoomService.createRoom(userId);
    }

}
